package com.ynet.middleground.approve.listener;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.ExecutionListener;

import com.ynet.middleground.approve.constant.ProcessStatusEnum;

/**
 * @author liulx
 * @description 流程开始监听
 * @date 2019-11-21 14:21
 */
public class NotifyStartListener extends BaseListener implements ExecutionListener {

    @Override
    public void notify(DelegateExecution delegateExecution) {
        // 流程启动记录
        startAndEndNotify(delegateExecution, ProcessStatusEnum.ACTIVE);
    }

}
